﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using BE;

namespace BLL
{
    public class LogWorker
    {
        LogDA DbInstance;
		public LogWorker()
		{
            DbInstance = new LogDA();
		}
        
        public Log Get(int id)
        {	
            return DbInstance.GetLog(id);
        }

        public List<Log> GetAll()
        {
            return DbInstance.GetAllLogs();
        }

        public int Add(Log log)
        {
           return  DbInstance.AddLog(log);
        }

        public int Edit(Log log)
        {
            return DbInstance.EditLog(log);
        }

        public int Delete(int id)
        {
            return DbInstance.DeleteLog(id);
        }
    }
}
